<include file="Public/min-header" />
<div class="wrapper">
    <include file="Public/breadcrumb" />
    <section class="content">
        <div class="container-fluid">

            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i> 账户资金记录列表</h3>
                </div>
                <form action="" id="search-form2" class="navbar-form form-inline" method="post" >
                <div class="panel-body">

                        <div class="form-group">
                            <label class="control-label" for="input-user_id">会员id</label>
                            <div class="input-group">
                                <input type="text" name="user_id" value="{$user_id}" placeholder="会员id" id="input-user_id" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="input-nickname">　用户名称</label>
                            <div class="input-group">
                                <input type="text" name="username" value="{$post.username}" placeholder="昵称" id="input-nickname" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="control-label" for="input-mobile">　手机号码</label>
                            <div class="input-group">
                                <input type="text" name="mobile" value="{$post.mobile}" placeholder="手机号码" id="input-mobile" class="form-control">
                                <!--<span class="input-group-addon" id="basic-addon2"><i class="fa fa-search"></i></span>-->
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="control-label" for="input-order-id">类型选择</label>
                            <div class="input-group">
                                <select name="type" class="form-control">
                                    <option value="">请选择</option>
                                    <volist name="type" id="vo">
                                    <option value="{$key}"
                                        <if condition="$post.type eq  $key">selected</if>>{$vo}</option>
                                    </volist>
                                </select>
                            </div>
                        </div>


                        <div class="form-group">
                            <button type="submit" onclick="$('#search-form2').attr('action','');$('#search-form2').submit();" id="button-filter search-order" class="btn btn-primary pull-right"><i class="fa fa-search"></i> 筛选</button>
                        </div>

                        <button type="button" onclick="$('#search-form2').attr('action','{:U(\'user/export_userlog\')}');$('#search-form2').submit();" class="btn btn-default pull-right" style = "margin-top:5px"><i class="fa fa-file-excel-o"></i>&nbsp;导出excel</button>



                    <div class="table-responsive">
                        <table class="table table-bordered table-hover">
                            <thead>
                                <tr>
                                    <th style="width: 1px;" class="text-center">
                                        <input type="checkbox" onclick="$('input[name*=\'selected\']').prop('checked', this.checked);">
                                    </th>
                                    <th class="text-center">
                                        ID
                                    </th>
                                    <th class="text-center">
                                        用户名称
                                    </th>
                                    <th class="text-center">
                                        用户手机
                                    </th>
                                    <th class="text-center">
                                        操作
                                    </th>
                                    <th class="text-center">
                                        金额
                                    </th>
                                    <th class="text-center">
                                        支付状态
                                    </th>
                                    <th class="text-center">
                                        交易单号
                                    </th>
                                    <th class="text-center">
                                        商户单号
                                    </th>
                                    <th class="text-center">
                                        支付时间
                                    </th>
                                    <th class="text-center">
                                        生成时间
                                    </th>
                                </tr>
                            </thead>
                            <tbody>
                                <volist name="lists" id="list">
                                    <tr>

                                        <td class="text-center">
                                            <input type="checkbox" name="selected[]" value="{$list.id}">
                                        </td>

                                        <td class="text-left ">{$list.id}</td>
                                        <td class="text-left ">{$list.username}</td>
                                        <td class="text-left ">{$list.mobile}</td>
                                        <td class="text-left">
                                            {$type[$list[type]]}
                                        </td>
                                        <td class="text-right">
                                            {$list.money}
                                        </td>
                                        <td class="text-center"><if condition="$list.status eq 1">成功<else /><font color="red">失败</font></if></td>
                                        <td class="text-right">
                                            {$list.trade_sn}
                                        </td>
                                        <td class="text-right">
                                            {$list.shop_sn}
                                        </td>
                                        <td class="text-center">{$list.pay_time|date="Y-m-d H:i",###}</td>
                                        <td class="text-center">{$list.add_time|date="Y-m-d H:i",###}</td>
                                    </tr>
                                </volist>
                            </tbody>
                        </table>

                        <div class="pull-right">
                            {$page}
                        </div>
                    </div>

                </div>
                </form>
            </div>
        </div>
    </section>
</div>
